﻿using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.Report;
using Kingdee.BOS.Core.Report.PlugIn;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WSDZ.KM.ZH.OtherReceivableGotoReport1
{
    [Description("应收款明细表"), HotUpdate]
   public class ReceivableDetailReport: AbstractSysReportPlugIn
    {
        public override void OnInitialize(InitializeEventArgs e)
        {
            base.OnInitialize(e);
            try
            {
                if (this.View.OpenParameter.GetCustomParameter("custType") != null && this.View.OpenParameter.GetCustomParameter("custId") != null)
                {
                    string custType = this.View.OpenParameter.GetCustomParameter("custType").ToStringV1();
                    string custId = this.View.OpenParameter.GetCustomParameter("custId").ToStringV1();
                    SysReportShowParameter param = new SysReportShowParameter();
                    
                    param.CustomParams.Add("custType", custType);//将单据传过来的值，又传给过滤窗口
                    param.CustomParams.Add("custId", custId);//将单据传过来的值，又传给过滤窗口
                }
                else
                {
                    return;
                }
            }
            catch (Exception ex)
            {
                View.ShowErrMessage(ex.Message);
            }
         
        }


    }
}
